package com.briup.cms.dao;


import com.briup.cms.bean.Comment;
import com.briup.cms.bean.Config;
import org.apache.ibatis.annotations.*;




import java.util.List;
@Mapper


public interface ConfigMapper {
    @Select("select * from cms_config")
    List<Config> selectAll();
    @Insert("insert into cms_config values(null,#{key},#{val})")
    void insert(Config comment);

    @Update("update cms_config set `key`=#{key}, val=#{val} WHERE id=#{id}")
    void update(Config comment);

    @Delete("delete from cms_comment where id = #{id}")
    void deleteById(long id);
}
